Skip to content

update auth openapi spec#283

Merged
nikita-seedlabs merged 2 commits intomainfrom
nikita/auth-api-spec-refactor
Mar 18, 2026
Merged

update auth openapi spec#283
nikita-seedlabs merged 2 commits intomainfrom
nikita/auth-api-spec-refactor

Conversation

@nikita-seedlabs
Copy link
Contributor

  • Add makefile with an option of running openapi generator in docker
  • Add alternative packageVersion python script to bump semver versions without running apigen
  • Split out shared auth openapi models
  • Clean up old generated code

add makefile docker utils, clean up old openapi generated files
Copilot AI review requested due to automatic review settings March 18, 2026 22:47
alawrenc
alawrenc previously approved these changes Mar 18, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the auth OpenAPI spec to split shared auth schemas into a separate document, adds local tooling to run OpenAPI generation via Docker, and introduces a script to bump SDK versions based on detected spec changes while cleaning up previously generated Rust artifacts.

Changes:

  • Added a Docker-based Makefile workflow for generating TS/Python/Rust SDKs and bumping versions.
  • Introduced scripts/version_bump.py to detect spec changes via hashing and bump versions across generator configs/manifests.
  • Split shared auth schemas into resources/auth-common.yaml, updated resources/auth-api.yaml refs accordingly, and removed obsolete generated Rust models/docs.

Reviewed changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ts/sdk/src/.openapi-generator-ignore Ignore additional hand-written TS SDK files to prevent generator overwrites.
scripts/version_bump.py New spec-hash-based version bump utility for generator configs and package manifests.
rust/gen/bluefin_api/src/models/post_create_order_202_response.rs Removed obsolete generated Rust model.
rust/gen/bluefin_api/src/models/ping_response.rs Removed obsolete generated Rust model.
rust/gen/bluefin_api/src/models/ping_request.rs Removed obsolete generated Rust model.
rust/gen/bluefin_api/src/models/get_rewards_interval_metadata_interval_parameter.rs Removed obsolete generated Rust model.
rust/gen/bluefin_api/src/models/create_order_request_twap_config.rs Removed obsolete generated Rust model.
rust/gen/bluefin_api/src/models/campaign_rewards.rs Removed obsolete generated Rust model.
rust/gen/bluefin_api/src/models/affiliate_metadata_fees.rs Removed obsolete generated Rust model.
rust/gen/bluefin_api/docs/PostCreateOrder202Response.md Removed obsolete generated Rust docs.
rust/gen/bluefin_api/docs/PingResponse.md Removed obsolete generated Rust docs.
rust/gen/bluefin_api/docs/PingRequest.md Removed obsolete generated Rust docs.
rust/gen/bluefin_api/docs/GetRewardsIntervalMetadataIntervalParameter.md Removed obsolete generated Rust docs.
rust/gen/bluefin_api/docs/CreateOrderRequestTwapConfig.md Removed obsolete generated Rust docs.
rust/gen/bluefin_api/docs/CampaignRewards.md Removed obsolete generated Rust docs.
rust/gen/bluefin_api/docs/AffiliateMetadataFees.md Removed obsolete generated Rust docs.
rust/gen/bluefin_api/.openapi-generator/FILES Updated generator file tracking to include .openapi-generator-ignore.
resources/auth-common.yaml New shared auth component schemas/responses extracted from auth spec.
resources/auth-api.yaml Updated to reference shared components via external $ref to auth-common.yaml.
python/sdk/src/.openapi-generator-ignore Ignore additional hand-written Python SDK files/dirs to prevent generator overwrites.
Makefile New Docker-based OpenAPI generation and version-bump targets.
.gitignore Ignore additional editor/OS artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nikita-seedlabs nikita-seedlabs merged commit b69f00b into main Mar 18, 2026
8 checks passed
@nikita-seedlabs nikita-seedlabs deleted the nikita/auth-api-spec-refactor branch March 18, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants